<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:if="${user.id!=null}">
        <div th:text="${user.id}"></div>
        <div th:text="${user.username}"></div>
    </div>
    <form method="POST" th:action="@{/user/getData2}">
        <input th:type="text" th:name="id" id="nameId"/>
        <button type="submit" name="submit" value="value" class="button">发起普通post请求</button>
    </form>
</body>
</html>